from app import app, db
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from modes import Hosts

manager = Manager(app)
migrate = Migrate(app, db)

manager.add_command('db', MigrateCommand)

if __name__ == '__main__':
    manager.run()

# 1. python3 manage.py db init
# 2. python3 manage.py db migrate
# 3. python3 manage.py db upgrade
